/**
  ******************************************************************************
  * @file    main.h
  * @author  MCU Application Team
  * @brief   Header for main.c file.
  *          This file contains the common defines of the application.
  ******************************************************************************
  * @attention
  *
  * <h2><center>&copy; Copyright (c) Puya Semiconductor Co.
  * All rights reserved.</center></h2>
  *
  * <h2><center>&copy; Copyright (c) 2016 STMicroelectronics.
  * All rights reserved.</center></h2>
  *
  * This software component is licensed by ST under BSD 3-Clause license,
  * the "License"; You may not use this file except in compliance with the
  * License. You may obtain a copy of the License at:
  *                        opensource.org/licenses/BSD-3-Clause
  *
  ******************************************************************************
  */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __MAIN_H
#define __MAIN_H

#ifdef __cplusplus
extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include "py32f0xx_hal.h"
#include "py32f002xx_Start_Kit.h"

#define RA_RST_Pin           GPIO_PIN_3
#define RA_RST_GPIO_Port     GPIOB
#define RA_BUSY_Pin          GPIO_PIN_6
#define RA_BUSY_GPIO_Port    GPIOA
#define RA_DIO1_Pin          GPIO_PIN_1
#define RA_DIO1_GPIO_Port    GPIOB
#define RA_CSN_Pin           GPIO_PIN_4
#define RA_CSN_GPIO_Port     GPIOA

#define SWITCH_OUT_Pin       GPIO_PIN_0
#define SWITCH_OUT_GPIO_Port GPIOB
#define LED_DO_Pin           GPIO_PIN_3
#define LED_DO_GPIO_Port     GPIOA

#define LED_LINK_Pin           GPIO_PIN_2
#define LED_LINK_GPIO_Port     GPIOA


/* Private includes ----------------------------------------------------------*/
/* Exported functions prototypes ---------------------------------------------*/
void Error_Handler(void);

/* Exported functions prototypes ---------------------------------------------*/
/* Private defines -----------------------------------------------------------*/

#ifdef __cplusplus
}
#endif

#endif /* __MAIN_H */

/************************ (C) COPYRIGHT Puya *****END OF FILE****/
